from django.urls import path
from rest_framework import routers
from api.views import account,topic

router = routers.SimpleRouter()

# 注册
router.register(r'register', account.RegisterView, 'register')

# 创建话题
router.register(r'topic',topic.TopicView)


urlpatterns = [
    # path('register/', account.RegisterView.as_view({"post": "create"})),
    path('auth/', account.AuthView.as_view()),
]

urlpatterns += router.urls
